package com.wing.cabinet.model.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.cabinet.utils.ExcelExport;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 售刀柜产品库存VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class CellInventoryProductVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime updateTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * sku id
     */
    private Long skuId;

    /**
     * 库存数量
     */
    @ExcelExport(value = "库存（包装计）", sort = 5)
    private Integer quantity;

    /**
     * 企业id
     */
    private Long companyId;

    /**
     * 货道id
     */
    private Integer spaceId;

    /**
     * (0正常，1告警)
     */
    //@ExcelExport(value = "库存状态", sort = 10,kv = "0-正常;1-告警")
    private Long status;

    /**
     * sku code
     */
    @ExcelExport(value = "物料编号", sort = 2)
    private String skuCode;

    /**
     * 柜子编码
     */
    private String cabCode;

    /**
     * 货道
     */
    private String spaceCode;

    /**
     * sku 名称
     */
    /**
     * 产品名称
     */
    @ExcelExport(value = "物料名称", sort = 1)
    private String skuName;

    /**
     * sku 规格
     */
    private String skuSpec;

    /**
     * sku 图片
     */
    private String skuPic;


    private String productName;

    /**
     * 产品类型名称
     */
    private String productTypeName;

    /**
     * 产品分类名称
     */
    private String productCategoryName;

    /**
     * 产品品牌
     */
    @ExcelExport(value = "品牌", sort = 4)
    private String productBrandName;

    /**
     * 产品型号
     */
    private String productModelName;

    /**
     * 适配机床
     */
    private String deviceName;

    /**
     * 市场价
     */
    private BigDecimal marketPrice;

    @ExcelExport(value = "柜子数量", sort = 9)
    private Integer cabNum;

    @ExcelExport(value = "货道数", sort = 10)
    private Integer spaceNum;


    private List<CellInventorySpaceVO> detailList;

    private String skuCodeOld;
    @ExcelExport(value = "规格码", sort = 3)
    private String skuSpecOld;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    /**
     * 开始天数
     */
    private String startDay;

    /**
     * 结束天数
     */
    private String endDay;

    private String days;


    private Boolean showPriceFlag;
    @ExcelExport(value = "库存（基础单位计）", sort = 7)
    private Integer quantityPack;

    private Integer quantityPackUnit;


    private Long packId;
    @ExcelExport(value = "包装规格", sort = 6)
    private String packName;

    private String unitName;

    private String oldSpecCode;
    @ExcelExport(value = "基础单位", sort = 8)
    private String basicsUnitName;
}
